<!--
 * @Description:
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2025-05-08 17:26:34
 * @LastEditors: Seven
 * @LastEditTime: 2025-05-08 17:27:42
-->
<template>
  <el-dialog :visible.sync="dialogOpenDetail" :title="dialogTitleDetail" :before-close="cancel" width="40%"
    destroy-on-close :close-on-click-modal="false">
    <el-descriptions title="用户信息">
      <el-descriptions-item label="用户名">kooriookami</el-descriptions-item>
      <el-descriptions-item label="手机号">18100000000</el-descriptions-item>
      <el-descriptions-item label="居住地">苏州市</el-descriptions-item>
      <el-descriptions-item label="备注">
        <el-tag size="small">学校</el-tag>
      </el-descriptions-item>
      <el-descriptions-item label="联系地址">江苏省苏州市吴中区吴中大道 1188 号</el-descriptions-item>
    </el-descriptions>
  </el-dialog>
</template>
<style scoped>
.dialog-footer {
  text-align: center;
}
</style>
<script>
import { addDataInterface, updateDataType } from "@/api/statistical";

export default {
  name: "Detail",
  props: [
    "dialogTitle", //标题
    "dialogOpen", //显示
    "dialogData",
  ],
  data() {
    return {
    };
  },
  watch: {},
  created() { },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      console.log("dialogData", this.dialogData);
      getrecodeDetail(this.dialogData.id).then((res) => {
        this.detailData = res.data;
        // this.detailData.total = this.convertFileSize(this.detailData.totalFilesSize)
      });
    },
    // 取消按钮
    cancel() {
      this.$emit("closeDialog");
    },

  },
};
</script>
